<?php 
 require_once("konf.php"); 
  require_once("pais.php"); 

	$kask=$yhendus->prepare("SELECT id, jooginimi, kogus 
	FROM joogid");
	$kask->bind_result($id, $jooginimi, $kogus);
	$kask->execute();
 ?>
 

<!doctype html>
<html>
 <head>
 <title>Baarikapp</title>
 </head>
 <body>
 <h1>Baarikapi seis</h1>
 <table border="1">
 <tr>
	 <th>Jook</th>
	 <th>Kogus (cl)</th>
 </tr>
 <?php
 while($kask->fetch()){
 echo "
 <tr>
 <td>$jooginimi</td>
 <td>$kogus</td>
</tr>
 ";
}
 ?>
</table>
 </body>
</html>